package com.neutech.neupha.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.neutech.neupha.mapper.DrugMapper;
import com.neutech.neupha.service.DrugService;
@Service
public class DrugServiceImpl implements DrugService {
	@Autowired
	private DrugMapper drugMapper;
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public int addNewDrug(Map<String, Object> drug) {
		return drugMapper.addNewDrug(drug);

	}

}
